import {createRouter,createWebHistory} from 'vue-router'

const routers = [
    {
        name:"login",
        path: "/login",
        component: () => import("../views/index/LoginPage.vue")
    },
    {
        name:"register",
        path: "/register",
        component: () => import("../views/index/RegisterPage.vue")
    },
    {
        name:'home',
        path:'/',
        component: () => import("../views/index/RootPage.vue"),
        children: [
            {
                name:'工作台',
                path: '/desktop',
                component: () => import("../views/index/DaskTop.vue"),
            }
        ]
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes: routers
  })

  export default router